﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Site.master" AutoEventWireup="true" CodeFile="WIN07_1S.aspx.cs" Inherits="IFRS_WIN07_1S" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Content/plugins/jquery-ui/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />       
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container-custom">
        <div class="table_master">
            <fieldset class="fsStandard">
                <legend>
                    <asp:Label ID="lblTopTitle" SkinID="CaptionBold" runat="server" Text="<%$Resources:ifrsField,CONDITIONS_SEARCH%>" />
                </legend>
                <div class="table_detail">
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblGSBBondCode" runat="server" Text="<%$Resources:ifrsField,GSBBondCode%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtGSBBondCode" runat="server" SkinID="TextBoxWithNoColor"></asp:TextBox>
                        </div>
                    </div>
                    <div class="rowinfo">
                        <div class="collabel_single">
                            <asp:Label ID="lblAllowedReturnDate" runat="server" Text="<%$Resources:ifrsField,AllowedReturnDate%>" />&nbsp;:&nbsp;
                        </div>
                        <div class="colinfo_single">
                            <asp:TextBox ID="txtAllowedReturnDate" CssClass="datepicker" SkinID="dateText" 
                                runat="server" onblur="datebox_onblur( this, event );" ></asp:TextBox>
                        </div>
                    </div>                   
                    <div class="rowinfo">                        
                        <div class="collabel_single">
                            <asp:Label ID="lblStatus" runat="server" Text="<%$Resources:ifrsField,LIST_STATUS%>" />&nbsp;:&nbsp;
                        </div>                                    
                        <div class="colinfo_single">
                            <asp:DropDownList ID="ddlStatus" runat="server" SkinID="DropDownListWithNoColor" />
                        </div>
                    </div>
                </div>               
                <div class="colbtn">
                    <asp:Button ID="btnSEARCH" SkinID="NormalButton" runat="server" 
                        Text="<%$Resources:ifrsButton,SEARCH%>" onclick="btnSEARCH_Click" />&nbsp;
                    <asp:Button ID="btnCLEAR" SkinID="NormalButton" runat="server" 
                        Text="<%$Resources:ifrsButton,CLEAR%>" onclick="btnCLEAR_Click" />&nbsp;
                    <asp:Button ID="btnCANCEL" SkinID="NormalButton" runat="server" 
                        Text="<%$Resources:ifrsButton,CANCEL%>" onclick="btnCANCEL_Click" />
                </div>              
            </fieldset>
            <div class="colbtnAdd">
                <asp:Button ID="btnAdd" runat="server" SkinID="NormalButton" 
                    Text="<%$Resources:ifrsButton,ADD%>" onclick="btnAdd_Click" />
            </div>           
            <div class="content_grid">
                <asp:GridView ID="gvSearch" runat="server" AllowSorting="true" CssClass="CSSTableGenerator" AutoGenerateColumns="false"
                    AllowPaging="true" PageSize="10" OnRowDataBound="gvSearch_RowDataBound" OnSorting="gvSearch_Sorting">
                    <Columns>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center">
                            <HeaderTemplate>
                                <asp:Label ID="lblgvSEQ" runat="server" Text="<%$Resources:ifrsField,CENTER_SEQ%>" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblRowNumber" runat="server" Text='<%# Eval("RowNumber","{0:N0}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                         <asp:TemplateField SortExpression="GSBBondCode" HeaderText="<%$Resources:ifrsField,GSBBondCode%>">
                            <ItemStyle HorizontalAlign="Left" />
                            <ItemTemplate>
                                <asp:Label ID="lblgvGSBBondCode" runat="server" Text='<%# Eval("GSBBondCode") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField SortExpression="AllowedReturnDate" HeaderText="<%$Resources:ifrsField,AllowedReturnDate%>">
                            <ItemStyle HorizontalAlign="Center" />
                            <ItemTemplate>
                                <asp:Label ID="lblgvAllowedReturnDate" runat="server" Text='<%# Eval("AllowedReturnDate", "{0:dd/MM/yyyy}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>                                               
                        <asp:TemplateField SortExpression="AllowedReturnPrice" HeaderText="<%$Resources:ifrsField,AllowedReturnPrice%>">
                            <ItemStyle HorizontalAlign="right" />
                            <ItemTemplate>
                                <asp:Label ID="lblgvAllowedReturnPrice" runat="server" Text='<%# Eval("AllowedReturnPrice","{0:N2}") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>                      
                        <asp:TemplateField SortExpression="IsConfirmedText" ItemStyle-HorizontalAlign="Center"
                            HeaderText="<%$Resources:ifrsField,LIST_STATUS%>">
                            <ItemTemplate>
                                <asp:Label ID="lblgvIsConfirmed" runat="server" Text='<%# Eval("IsConfirmedText") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>                      
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkCopy" AlternateText="<%$Resources:ifrsMenu,Edit%>" runat="server"
                                    OnClick="lnkCopyItems_Click">
                                    <asp:Image ID="imgAdd" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/copy.png" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkEdit" AlternateText="<%$Resources:ifrsMenu,Securable%>"
                                    runat="server" OnClick="lnkEditItems_Click">
                                    <asp:Image ID="imgEdit" runat="server" AlternateText="<%$Resources:ifrsMenu,Edit%>" ToolTip="<%$Resources:ifrsMenu,Edit%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Edit.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkDelete" AlternateText="<%$Resources:ifrsMenu,Delete%>" runat="server"
                                    OnClick="lnkDeleteItems_Click">
                                    <asp:Image ID="imgDelete" runat="server" AlternateText="<%$Resources:ifrsMenu,Delete%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/delete.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <asp:LinkButton ID="lnkView" AlternateText="<%$Resources:ifrsMenu,View%>" runat="server"
                                     OnClick="lnkViewItems_Click">
                                    <asp:Image ID="imgView" runat="server" AlternateText="<%$Resources:ifrsMenu,View%>"
                                        CssClass="CommandIcon" ImageUrl="~/Content/img/Preview.gif" />
                                </asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>                        
                    </Columns>
                </asp:GridView>
                <asp:Repeater ID="repPager" runat="server">
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkPage" runat="server" Text='<%#Eval("Text") %>' CommandArgument='<%# Eval("Value") %>'
                            Enabled='<%# Eval("Enabled") %>' OnClick="Page_Changed"></asp:LinkButton>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
    </div>    
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Content/plugins/jquery-ui/ui/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Content/plugins/custom.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".datepicker").initDatepicker();
        });
    </script>
</asp:Content>